﻿package net.wangit.framework.validation;

import net.wangit.LabelUtil;
import net.wangit.context.ActionContext;
import net.wangit.support.Validator;

public abstract class ScopeValidator
	implements Validator
{

	public ScopeValidator()
	{
	}

	protected String validateScope(ActionContext ac, boolean pass, String from, String to)
	{
		String parameters[] = {
			to, from
		};
		return pass ? null : LabelUtil.get(ac, "system", "validation.scope", parameters);
	}
}
